package com.zk.bcutil;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

import webservice.BCWebservice;
import webservice.impl.BCWebserviceImpl;

public class Cceshi {

	public static void main(String[] args) {
		JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
		factory.setServiceClass(BCWebservice.class);
		factory.setAddress("http://10.41.50.22:8080/ESB/webService/bcWebService");
		BCWebservice bc = (BCWebservice)factory.create(); 
		String s = bc.BC_OA_GETUSERINFO("<Request><Header><sender>HR</sender><receiver>ESB</receiver><sendTime>20160101020202</sendTime><msgType> BC_HR_USERADD </msgType><msgID>ESB20160101020202</msgID></Header><Oa><time>20000</time></Oa></Request>");
		System.out.println(s);
		
	}
}
